import java.util.Arrays;

public class Demo546 implements Comparable{
    @Override
    public int compareTo(int a,int b) {
      return b-a;
    }

    public static void main(String[] args) {
        int[] arr = new int[]{2,5,6,8,2,6};
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
    }
}
